<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE xsl:stylesheet SYSTEM "lang://users">

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">	
	
	<xsl:include href="../shortMain.xsl" />
	<xsl:include href="../common/form.xsl" />

	<xsl:template match="/data">
		<html>
		
		<head>
			<title>
				<xsl:value-of select="$pageTitle" />
			</title>
			<xsl:call-template name="meta-head" />
			<link rel="stylesheet" href="{$baseURI}/css/forms.css" type="text/css" media="all" />
		</head>
		<body>
		
			<xsl:call-template name="logo" />

			<div id="content">
				<div id="content_inner">
					<xsl:apply-templates select="response" />
				</div>
			</div>

		</body>
		</html>
	</xsl:template>
	
	<xsl:template match="response">
		<h1>&labelAuth;</h1>
		
		<xsl:apply-templates select="error" />
		
		<form action="{$baseURI}/users/login" method="post">
			<div class="form_field">
				<div class="form_field_label">&labelLogin;:</div>
				<div class="form_field_input">
					<input class="form_input_latin" type="text" name="login" value="" />
				</div>
			</div>
			<div class="form_field">
				<div class="form_field_label">&labelPass;:</div>
				<div class="form_field_input">
					<input class="form_input_header" type="password" name="password" value="" />
				</div>
			</div>
			<p>
				<input type="submit" value="&labelToLogin;" />
			</p>
			<p>
				<a href="{$baseURI}/users/registration">&labelToRegistrate;</a>
				<xsl:text>, &labelIfNotReg;.</xsl:text>
			</p>
			
		</form>
	</xsl:template>

</xsl:stylesheet>